#include<iostream>
using namespace std;
using ll = long long;
ll a[11][11];
ll n;
void solve()
{
    for (ll i = 1; i <= 9; i++)
    {
        for (ll j = 1; j <= 9; j++)
        {
            cin >> a[i][j];
        }
    }
    for (ll i = 1; i <= 9;i++)
    {

    }
}
int main()
{
    cin >> n;
    while(n--)
    {
        solve();
    }

}